package cn.minsh.lims.eoms.modules.app.controller.res;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

/**
 * @author Administrator
 */
@Data
@ApiModel("平台巡检工单详情")
public class UserInspectionPlanInfoForPlatRes extends UserInspectionPlanRes{

    @ApiModelProperty("巡检提醒，正整数列表")
    private List<Integer> remindList = null;
    @ApiModelProperty("巡检内容，字符串列表")
    private List<String> contentList = null;
    @ApiModelProperty("巡检结果")
    private List<PlanResult> planResultList =null ;
    @ApiModelProperty("当前登录人")
    private Long loginUserId = -1L;
    @ApiModelProperty("巡检方式：0扫描设备巡检1扫描计划巡检")
    private Integer checkType ;
    @ApiModelProperty("巡检执行人")
    private List<Long> executorIdList = null;

    @Data
    @ApiModel("平台巡检工单详情-巡检结果")
    public static class PlanResult{
        @ApiModelProperty("巡检范围记录id")
        private Long id =-1L;
        @ApiModelProperty("巡检范围id")
        private Long scopeId =-1L ;
        @ApiModelProperty("巡检结果：-1未巡检，0正常，1异常2逾期未巡检")
        private Integer result;
        @ApiModelProperty("巡检执行人")
        private Long executorId ;
        @ApiModelProperty("现场图片列表")
        private List<String> picList = null ;
        @ApiModelProperty("巡检说明")
        private String explain = "" ;
        @ApiModelProperty("巡检内容")
        private List<Content> contentList = null  ;

        @Data
        @ApiModel("平台巡检工单详情-巡检结果-巡检内容")
        public static class Content{
            @ApiModelProperty("巡检内容记录id")
            private Long id =-1L;
            @ApiModelProperty("巡检内容")
            private String content = "" ;
            @ApiModelProperty("巡检结果：-1未巡检，0正常，1异常2逾期未巡检")
            private Integer result = -1;
        }
    }

}
